<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
<div class="wow-detail-wrapper">
	<div class="wow-detail w990">
	  <div class="wow-detail-bd">
		<div class="detail-info-bd">
		  <div class="wow-detail-pic">
				<a href="#" target="_blank"><img src="{$this->data['item']['pic']}" onload="if(this.width>400){this.width=400;}"></a>
		  </div>
			<div class="wow-detail-title">
				<h1><a href="#" target="_blank">{$this->data['item']['title']}</a></h1>
				<div class="vote-area">
						<div class="wow-dig">
		<a href="javascript:void(0);" data-shareid="{$this->data['item']['share_id']}" class="vote-trigger SHARE_FAV_A">喜欢</a>
		<span class="J_Counter" id="SHARE_FAV_COUNT_{$this->data['item']['share_id']}">{$this->data['item']['collect_num']}</span>
	</div></div>
				<p class="price-normal">价格：<strong>{$this->data['item']['price']}</strong>元</p>
				<p class="wow-follow-buy"><a title="跟随购买" href="#">跟随购买</a></p>
				<p class="wow-follow-buy">
					
					<div style="padding:10px 10px 15px 15px;background:none repeat scroll 0 0 #FFFFFF;border-radius:5px 5px 5px 5px;width:100%;">
					     <span class="s_t_p">{$this->data['item']['content']}</span>
					 </div>
					
						
						
						</p>
			</div>
			</div>
			<div class="detail-core-bd" id="J_detailShare">
            	

<!--点评框 start-->
<form method="post" id="u_zone_form">
<div id="publish_me" class="pub_box2">

<div class="pub_area r5">
<div class="pub_edit r5">
<div class="fwpa_tool">
<a class="fl add_face_new" href="javascript:;"><img class="fl" style="margin-top:5px" w="fw" src="/images/default/util/add_face_c.png"></a>
<span class="fw_count">还可以输入<b class="WORD_COUNT" style="color: rgb(102, 153, 0);">140</b>个字符</span>
</div>
<textarea name="content" id="share_comment_content" class="PUB_TXT pub_txt fl rl5" length="140" position="0" ></textarea>
<input type="button" class="pub_btn fl rr5" value="发表" onclick="$.Add_Share_Comment(this, '#J_ShareComment')" />
<input type="hidden" value="{$this->data['item']['share_id']}" name="share_id" />
</div>
</div>
<div class="clear"></div>

</div>
<div style="clear:both"></div>
<!--点评框 end-->
<h2>共<strong>{$this->data['item']['share_num']}</strong>人购买后推荐过该宝贝</h2>
       <ul class="fx-items clearfix" id="J_ShareComment">
		{loop $this->data['comments'] $item}
		<li>
		<div class="wow-avatar">
			<span class="sns-pic s60">
				<a class="GUID" target="_blank" href="{url('User','Index', array('uid'=>$item['user_id']))}" uid="{$item['user_id']}"><img width="50" src="{$this->data['baseurl']}{if $item['logo']}{$item['logo']}{else}images/noavatar_middle.jpg{/if}"></a>
			</span>
		</div>
		<div class="wow-artical item">
			<p class="author-nick"><a class="J_Card" target="_blank" href="{url('User','Index', array('uid'=>$item['user_id']))}">{$item['username']}</a></p>
			<div class="artical-brief clearfix"><p class="summary ">{$item['content']}</p></div>
			<p class="artical-indicator"><span class="push-timer">{$item['created']}</span><span><a onclick="$.Reply_Comment(this);" cid="{$item['user_id']}" uname="{$item['username']}" href="javascript:;" w="f" class="rpl">回复</a></span></p>
			<s></s>
		</div>
		 </li>
		{/loop}
	</ul>
	<div class="list-pagination">{$this->data['pages']}</div>
 	</div>	
</form>
	<div class="wow-detail-fxed">
	<div class="detail-fxed-bd">
		<h3>买过这个宝贝的人还推荐了</h3>
		<ul class="clearfix">
		{if $this->data['recommends'] }
		<!--{loop $this->data['recommends'] $k $item}-->
			<li {if $k==3}class="adjust"{/if}>
				<div class="sns-pic s160">
					<a href="{url('Share','View',array('id'=>$item['share_id']))}" title="{$item['title']}" class="wow-rec-link module-item-link"><img src="{$this->data['baseurl']}{$item['pic']}" alt="{$item['title']}" ></a>
				</div>
			</li>
		<!--{/loop}-->
		{/if}
								
		</ul>
	</div>
	</div>
	</div>

	
<div class="wow-detail-aside">
	<div class="detail-intrest-bd">
		
		<h3>同类宝贝推荐</h3>
		<ul id="J_recBox" class="clearfix">
		{if $this->data['items'] }
		<!--{loop $this->data['items'] $item}-->
			<li>
				<div class="sns-pic s120">
					<a class="wow-intrest-link module-item-link" href="{url('Share','View',array('id'=>$item['share_id']))}" title="{$item['title']}" ><img src="{$this->data['baseurl']}{$item['pic']}" alt="{$item['title']}" ></a>
				</div>
			</li>
		<!--{/loop}-->
		{/if}
			
		</ul>
		
	</div>
	
	
</div>
	</div>
</div>
<script>
VTUI.ShareCommentHtml = function(data){
	var html = '<li style="display:none"><div class="wow-avatar"><span class="sns-pic s60"><a href="'+data.home+'" target="_blank" class="GUID"><img width="50" src="'+data.logo+'"></a></span></div><div class="wow-artical item"><p class="author-nick"><a href="'+data.home+'" target="_blank" class="J_Card">'+data.username+'</a></p>';
	html += '<div class="artical-brief clearfix"><p class="summary ">'+data.content+'</p></div>';
	html += '<p class="artical-indicator"><span class="push-timer">'+data.created+'</span><span><a onclick="$.Reply_Comment(this);" cid="'+data.user_id+'" uname="'+data.username+'" href="javascript:;" class="J_Forward">回复</a></span></p></div></li>';
	return html;
}
$(function(){
	$.Pub_Count_Bind($("#share_comment_content").get(0));
})
</script>